<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改密码</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.3/css/bootstrap.min.css" rel="stylesheet">
    <style>
        #form {
            margin-top: 20px;
            width: 50%;
            text-align: center;
            margin-left: 25%;
        }

        label {
            font-weight: 700;
        }
    </style>
</head>
<body>
<div id="form">
    <form class="bs-example bs-example-form" role="form" th:action="@{editPwd}" method="post">
        <div class="input-group mb-3">
            <div class="input-group-prepend" style="width: 85px">
                <span class="input-group-text" id="basic-addon1">&nbsp;原密码&emsp;</span>
            </div>
            <input type="password" class="form-control" name="primaryPwd"
                   aria-describedby="basic-addon1">
        </div>
        <div class="input-group mb-3">
            <div class="input-group-prepend" style="width: 85px">
                <span class="input-group-text" id="basic-addon2">&nbsp;新密码&emsp;</span>
            </div>
            <input type="password" class="form-control" name="newPwd"
                   aria-describedby="basic-addon2">
        </div>
        <div class="input-group mb-3">
            <div class="input-group-prepend" style="width: 85px">
                <span class="input-group-text" id="basic-addon3">确认密码&emsp;</span>
            </div>
            <input type="password" class="form-control" name="reNewPwd"
                   aria-describedby="basic-addon3">
        </div>
        <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
        <button type="submit" class="btn btn-primary" style="margin-top: 20px">保存</button>
    </form>
</div>
</body>
</html>